package cn.tedu._05notice.mapper;

import cn.tedu._05notice.pojo.dto.NoticeListQuery;
import cn.tedu._05notice.pojo.entity.Notice;
import cn.tedu._05notice.pojo.vo.NoticeDetailInfoVO;
import cn.tedu._05notice.pojo.vo.NoticeListVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

//@Mapper
public interface NoticeMapper {
    int insertNotice(Notice notice);

    List<NoticeListVO> listNotice(NoticeListQuery noticeListQuery);
    List<NoticeDetailInfoVO> listDetailNotice(Long id);

    void listDeleteNotice(Long id);

    int updateNoticeById(Notice notice);
}
